/**
 * output package name
 */
package com.kingdee.eas.custom.future.contracthange.completion.base.client;

import java.awt.event.*;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.metadata.entity.FilterItemInfo;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.bos.ui.face.CoreUIObject;
import com.kingdee.bos.ctrl.swing.tree.DefaultKingdeeTreeNode;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.query.IQueryExecutor;
import com.kingdee.eas.basedata.org.CostCenterOrgUnitInfo;
import com.kingdee.eas.common.client.SysContext;
import com.kingdee.eas.common.client.UIContext;
import com.kingdee.eas.framework.*;

/**
 * output class name
 */
public class RecepersonListUI extends AbstractRecepersonListUI
{
    private static final Logger logger = CoreUIObject.getLogger(RecepersonListUI.class);
    
    /**
     * output class constructor
     */
    public RecepersonListUI() throws Exception
    {
        super();
    }

    @Override
 	protected IQueryExecutor getQueryExecutor(IMetaDataPK arg0,
 			EntityViewInfo arg1) {
 		// TODO Auto-generated method stub
 		FilterInfo filternow = new FilterInfo();
        filternow = arg1.getFilter();
        FilterInfo orfilter = new FilterInfo();
        CostCenterOrgUnitInfo costcenter = SysContext.getSysContext().getCurrentCostUnit();
        orfilter.getFilterItems().add(new FilterItemInfo("companyID",costcenter.getId(),CompareType.EQUALS));
        try {
			filternow.mergeFilter(orfilter, "and");
		} catch (BOSException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		arg1.setFilter(filternow);
 		return super.getQueryExecutor(arg0, arg1);
 	}

    /**
     * output getBizInterface method
     */
    protected com.kingdee.eas.framework.ICoreBase getBizInterface() throws Exception
    {
        return com.kingdee.eas.custom.future.contracthange.completion.base.RecepersonFactory.getRemoteInstance();
    }

    /**
     * output createNewData method
     */
    protected com.kingdee.bos.dao.IObjectValue createNewData()
    {
        com.kingdee.eas.custom.future.contracthange.completion.base.RecepersonInfo objectValue = new com.kingdee.eas.custom.future.contracthange.completion.base.RecepersonInfo();
		
        return objectValue;
    }

}